<template>
  <div>
    <van-nav-bar title="收藏列表">
      <template #left>
        <van-icon
          name="arrow-left"
          size="18"
          color="white"
          @click="$router.go(-1)"
        />
      </template>
    </van-nav-bar>

    <RenderLi v-for="(item,index) in renderList" :key="index" :item="item" />
  </div>
</template>

<script>
import RenderLi from '@/components/RenderLi.vue'
import {getCollectList} from '@/api/house'
export default {
  name: 'Collect',
  props: {},
  components:{
    RenderLi
  },
  data(){
    return{
      renderList:[]
    }
  },
 async created(){
  const {data:{body}}= await getCollectList()
  this.renderList=body
  }
}
</script>

<style scoped lang="less">
.van-nav-bar {
  background-color: #23d881 !important;
}
.van-nav-bar .van-icon {
  color: white !important;
}
</style>
